#include "ImageScrollArea.h"
#include <QMainWindow>





 ImageScrollArea::ImageScrollArea(QWidget *parent)
     : QScrollArea(parent)
 {
     setAttribute(Qt::WA_StaticContents);

     
 }




  bool addPaintArea(PaintArea *paintArea);


bool ImageScrollArea::addPaintArea(PaintArea *paintArea)
 {
     this->setWidget(paintArea);
	 // paintArea->gView.resize(600, 600);

	 this->resize(paintArea->width(), paintArea->height());

     update();
     return true;
 }


